package cn.zhx.xa.model.dto.user;


import io.swagger.v3.oas.annotations.media.Schema;

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

@Data
@Schema(description = "用户登录请求参数")
public class LoginDto {

    @Schema(description = "用户名")
    @NotBlank(message = "用户名不能为空")
    private String username ;


    @Schema(description = "用户密码")
    @NotBlank(message = "用户密码不能为空")
    private String password ;

    @Schema(description = "验证码")
    @NotBlank(message = "验证码不能为空")
    private String captcha ;

    @Schema(description = "验证码的key")
    @NotBlank(message = "验证码的key为空")
    private String codeKey ;
}
